<script setup>
import { computed, onMounted, ref, watchEffect } from 'vue';
const num = ref(1)
const add = () => {
  num.value =num.value+1
}
watchEffect(()=>{
  // console.log(num.value);
  if(num.value){
    console.log(111222);
  }
})
console.log(333333333333)
console.log(333333333333)
const arr = [1,2,3,4,5]
const arr1 = [23,45,67,6,6,6,3,7,3]
const ac = new Set(arr1)
console.log([...ac])
console.log()
console.log(arr.reduce((acc,cur) =>acc+cur ,0));
const ev = [34,34,56,32,1,4,6,77,3,2,11,11]
const k = ev.some(i=>i ===11)
console.log(k)
const h = computed(()=>{
  return 99+1
})
</script>

<template>
  <div v-color>申请卡片</div>
  <button @click="add">{{num}}</button>
  {{h}}
</template>
<style lang="less" scoped>

</style>